package com.goktech.mapper;

import com.goktech.entity.Book;
import com.goktech.entity.User;
import com.goktech.entity.collect;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CollectMapper {
    public List<Map<String, Object>> selectAll(@Param("User") User u,@Param("begin") int begin, @Param("end") int end);

    public int insertCollect(collect c);

    public int deleteCollect(collect c);

    public int deleteCollect1(@Param("User")User user);

    public collect findByCollectOne(collect c);

    public List<Map<String,Object>> findByLikeBookName(@Param("User") User u, @Param("Book") Book b);

    public List<Map<String,Object>> findByLikeAuthor(@Param("User") User u, @Param("Book") Book b);
}
